﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EclipseLib.Client
{
    public class MenuButton
    {
        public string Tag;
    }
    public class MenuTextBox
    {
        public string Tag;
    }
    public class MenuTexture
    {
        public string Tag;
    }
    
    public class Menu
    {
        List<MenuButton> Buttons;
        List<MenuTextBox> TextBoxes;
        List<MenuTexture> Textures;

        public Menu()
        {
            Buttons = new List<MenuButton>();
            TextBoxes = new List<MenuTextBox>();
            Textures = new List<MenuTexture>();
        }

        public void AddButton(MenuButton NewButton)
        {
            if (!Buttons.Contains(NewButton))
                Buttons.Add(NewButton);
        }
        public void AddTextBox(MenuTextBox NewTextBox)
        {
            if (!TextBoxes.Contains(NewTextBox))
                TextBoxes.Add(NewTextBox);
        }
        public void AddTexture(MenuTexture NewTexture)
        {
            if (!Textures.Contains(NewTexture))
                Textures.Add(NewTexture);
        }
        public void RemoveButton(MenuButton ToRemove)
        {
            if (Buttons.Contains(ToRemove))
                Buttons.Remove(ToRemove);
        }
        public void RemoveTextBox(MenuTextBox ToRemove)
        {
            if (TextBoxes.Contains(ToRemove))
                TextBoxes.Remove(ToRemove);
        }
        public void RemoveTexture(MenuTexture ToRemove)
        {
            if (Textures.Contains(ToRemove))
                Textures.Remove(ToRemove);
        }
    }
}
